﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xts
{
    namespace XInterBank
    {
        namespace MarketData
        {
            public interface IXSnapshotDataHandler
            {
                void OnNewSnapshot(XBondSnapshotData snapshotData);
            }

            public class IXSnapshotDataMonitorI : IXSnapshotDataMonitorDisp_
            {
                protected IXSnapshotDataHandler x_snapshotDataHandler;

                public IXSnapshotDataMonitorI(ref IXSnapshotDataHandler snapshotDataHandler)
                {
                    x_snapshotDataHandler = snapshotDataHandler;
                }

                public override void NewSnapshot(XBondSnapshotData snapshotData, Ice.Current current__)
                {
                    x_snapshotDataHandler.OnNewSnapshot(snapshotData);
                }
            }

            public interface IXQuoteDetailDataHandler
            {
                void OnNewQuoteDetailData(XBondQuoteDetailData quoteDetailData);
            }

            public class IXQuoteDetailDataMonitorI : IXQuoteDetailDataMonitorDisp_
            {
                protected IXQuoteDetailDataHandler x_quoteDetailDataHandler;

                public IXQuoteDetailDataMonitorI(ref IXQuoteDetailDataHandler quoteDetailDataHandler)
                {
                    x_quoteDetailDataHandler = quoteDetailDataHandler;
                }

                public override void NewQuoteDetal(XBondQuoteDetailData quoteDetailData, Ice.Current current__)
                {
                    x_quoteDetailDataHandler.OnNewQuoteDetailData(quoteDetailData);
                }
            }
        }
    }    
}
